Ext.define('MyApp.model.NavigationEntity', {
			extend : 'Ext.data.Model',
			fields : ['id', 'appName', 'text', 'icon', 'controller', 'clazz',
					'parentId',// 'parentNode',
					{
						name : 'leaf',
						type : 'boolean',
						defaultValue : false
					}],
			hasMany : [{
				model : 'MyApp.model.ToolbarMenuEntity',
				name : 'toolbarMenuEntities',
				foreignKey:'navigationid'
			},{
				model : 'MyApp.model.AuthorityEntity',
				name : 'authorities',
				foreignKey:'navigationid'
			}] 
		});